From 29008aff6ce6007765269620d8b520a4f315926f Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 22 Sep 2005 15:19:30 +0100 Subject: [PATCH] Fixes a vtpm timeout problem for slow machines. Signed-off-by: Stefan Berger --- linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c b/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c index 593e7372ab..17726f8989 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c @@ -566,7 +566,7 @@ vtpm_op_read(struct file *file, * the more time we give the TPM to process the request. */ mod_timer(&pak->processing_timer, - jiffies + (num_frontends * 10 * HZ)); + jiffies + (num_frontends * 60 * HZ)); dataex.copied_so_far = 0; } } @@ -850,7 +850,7 @@ static int vtpm_queue_packet(struct packet *pak) write_lock_irqsave(&dataex.pak_lock, flags); list_add_tail(&pak->next, &dataex.pending_pak); /* give the TPM some time to pick up the request */ - mod_timer(&pak->processing_timer, jiffies + (10 * HZ)); + mod_timer(&pak->processing_timer, jiffies + (30 * HZ)); write_unlock_irqrestore(&dataex.pak_lock, flags); -- 2.30.2